package com.dlwx.firefighting.utils;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;

import com.flyco.dialog.widget.base.BottomBaseDialog;
import com.dlwx.firefighting.R;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
import butterknife.Unbinder;

/**
 * Created by Administrator on 2017/7/13.
 */

public class PayNowDialog extends BottomBaseDialog {


    @BindView(R.id.close_img)
    ImageView closeImg;

    @BindView(R.id.confirm_btn)
    Button confirmBtn;
    private Context context;
    private Unbinder unbinder;
    private int num=1;

    public PayNowDialog(Context context) {
        super(context);
        this.context = context;
    }

    @Override
    public View onCreateView() {
        View view = LayoutInflater.from(context).inflate(R.layout.dialog_pay, null);
        unbinder = ButterKnife.bind(this, view);
        return view;
    }

    @Override
    public void setUiBeforShow() {

    }

    @OnClick({R.id.close_img, R.id.confirm_btn})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.close_img:
                dismiss();
                break;

            case R.id.confirm_btn:
                dismiss();
                ToastUtils.toastForShort(context,"确定");
                break;
        }
    }
}
